# -*- coding: utf-8 -*-
from django.contrib import admin
from models import *


class MenuItemAdmin(admin.ModelAdmin):
    list_display = ('get_indented_name','menu','lft','cdate')
    ordering = ('lft',) # admin only honour 1. field
    list_filter = ('menu',)

admin.site.register(Menu)
admin.site.register(MenuItem,MenuItemAdmin)
admin.site.register(Country)

